package com.bountytask.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Information {
    @TableId("id")
    private long id;
    @TableField("taskid")
    private long taskId;
    @TableField("userid")
    private long userId;
    @TableField("role")
    private int role;
    @TableField("status")
    private int status;
    @TableField("finish_num")
    private Integer finishNum;
    @TableField("get_num")
    private Integer getNum;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}